package com.hui.platform.falseworkapi.service.business.webmagic.service;

import com.hui.platform.falseworkapi.common.core.vo.PageData;
import com.hui.platform.falseworkapi.service.business.webmagic.bo.TbWebmagicBaiduNewsBO;
import com.hui.platform.falseworkapi.service.business.webmagic.dto.TbWebmagicBaiduNewsDTO;
import com.hui.platform.falseworkapi.service.business.webmagic.entity.TbWebmagicBaiduNews;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 爬虫-百度新闻 服务类
 *
 * @author hui
 * @since 2020-04-19
 */
public interface TbWebmagicBaiduNewsService extends IService<TbWebmagicBaiduNews> {

    TbWebmagicBaiduNewsBO readById(Long id);

    List<TbWebmagicBaiduNewsBO> readByIds(List<Long> ids);

    List<TbWebmagicBaiduNewsBO> readList(TbWebmagicBaiduNewsDTO condition);

    PageData<TbWebmagicBaiduNewsBO> readPage(Long pageNum, Long pageSize, TbWebmagicBaiduNewsDTO condition);

    Long createOne(TbWebmagicBaiduNewsDTO dto);

    Long updateOne(Long id, TbWebmagicBaiduNewsDTO dto);

    Long deleteById(Long id);

    List<Long> deleteByIds(List<Long> ids);
}
